#ifndef SPCONTROLLER_H
#define SPCONTROLLER_H

#include <QObject>
#include "BuildingMapModel/buildingmapmodel.h"

class SPController : public QObject
{
    Q_OBJECT
public:
    explicit SPController(QObject *parent = nullptr);
    void processData(QByteArray data);

    void setSPQmlViewRootItem(const QObject *rootqmlview);

signals:
    void spEvent(QString isn , QString event , bool islt = false);
    void spInit(QString devtype,QString sdisn , QString state , int x , int y , int emgno);
public slots:
    void getFloorDevice(int buildtype, QVariant buildindex);

private:
    void initSPDevices();


    BuildingMapModel *mp_SPBuildingMapModel;
};

#endif // SPCONTROLLER_H
